<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$system_name}管理中心 - {$page_name}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="__PUBLIC__/css/amazeui.min.css"/>
    <link rel="stylesheet" href="__PUBLIC__/css/admin.css"/>
</head>
<body>
    <div class="admin-content">
        <!--页头-->
        <div class="am-cf am-padding">
            <div class="am-fl am-cf">
                <strong class="am-text-primary am-text-lg">商品管理</strong> / <small>{$page_name}</small>
            </div>
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-2 am-u-sm-offset-8">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            <a href="{:U('goods/goods_category')}" class="am-btn am-btn-default"><span class="am-icon-list"></span> 商品分类列表</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <hr/>

        <!--表单-->
        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-8">
                <form class="am-form am-form-horizontal">
                    <volist name="category_info" id="list">
                        <switch name="list.type">
                            <case value="text">
                                <div class="am-form-group">
                                    <label for="{$list.name}" class="am-u-sm-4 am-form-label">{$list.title}：</label>
                                    <div class="am-u-sm-4 am-u-end">
                                        <input type="{$list.type}" id="{$list.name}" name="{$list.name}">
                                    </div>
                                </div>
                            </case>
                            <case value="select">
                                <div class="am-form-group">
                                    <label for="{$list.name}" class="am-u-sm-4 am-form-label">{$list.title}：</label>
                                    <div class="am-u-sm-4 am-u-end">
                                        <select name="{$list.name}" id="{$list.name}">
                                            <option value="0">顶级分类</option>
                                        </select>
                                    </div>
                                </div>
                            </case>
                            <case value="checkbox">
                                <div class="am-form-group">
                                    <label class="am-u-sm-4 am-form-label">{$list.title}：</label>
                                </div>
                            </case>
                            <case value="textarea">
                                <div class="am-form-group">
                                    <label for="{$list.name}" class="am-u-sm-4 am-form-label">{$list.title}：</label>
                                    <div class="am-u-sm-8">
                                        <textarea class="" rows="5" id="{$list.name}"></textarea>
                                </div>
                                </div>
                            </case>
                        </switch>
                    </volist>

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-4">
                            <button type="button" class="am-btn am-btn-primary">确定</button>
                            <button type="button" class="am-btn am-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

    </div>
</body>
</html>